package cn.stylefeng.guns.modular.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 产品单位表
 * </p>
 *
 * @author 小飞
 * @since 2019-06-27
 */
@TableName("unit")
public class Unit implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    public Unit() {
    }

    public Unit(Integer id, String unitName) {
        this.id = id;
        this.unitName = unitName;
    }

    /**
     * 单位
     */
    @TableField("unit_name")
    private String unitName;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    @Override
    public String toString() {
        return "Unit{" +
        "id=" + id +
        ", unitName=" + unitName +
        "}";
    }
}
